<!DOCTYPE html>
<html>
<head>
    <title>特种设备校验</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="3">
                    <Date-picker type="date" v-model="q.beginTime" placeholder="开始时间"></Date-picker>
                </i-col>
                <i-col span="3">
                    <Date-picker type="date" v-model="q.endTime" placeholder="结束时间"></Date-picker>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("devspeccheck:update"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;添加校验结果</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
    </div>
    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="specialDevCheckRecord" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="检测机构" prop="userDept">
                        <i-select v-model="specialDevCheckRecord.inspectUnitId" placeholder="检测机构">
                            <i-option value="-1">请选择检测机构</i-option>
                            <i-option v-for="inspectUnit in inspectUnitList" :value="inspectUnit.id" :key="inspectUnit.id">{{inspectUnit.name}}</i-option>
                        </i-select>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="1">
                    <Form-item label="校验日期" prop="checkDate">
                        <Date-picker type="date" v-model="specialDevCheckRecord.checkDate" placeholder="校验日期"></Date-picker>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="证书编号" prop="certificateNumber">
                        <i-input v-model="specialDevCheckRecord.certificateNumber" placeholder="证书编号"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="备注" prop="remark">
                        <i-input type="textarea" v-model="specialDevCheckRecord.remark" placeholder="备注"/>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<script src="${rc.contextPath}/js/device/specialdevcheckrecord.js?_${date.systemTime}"></script>
</body>
</html>
